﻿using System;
using TheCell;
using System.Collections.Generic;

namespace SudoCalc
{
    public class Answer
    {
        static void Main(string[] args)
        {
            string fileFullPath = @"D:\Code\Sudo\SudoData.json";
            List<Cell> cells = JsonUtils.Deserialize(fileFullPath);
            ClassifyUtils.Classify(cells);

            while (!StatusCounter.FinalCounter(cells))
            {
                PossibilityUtils.Possibility(cells);
                if (!StatusCounter.ChangeCounter(cells))
                {
                    break;
                } 
            }   
            
            JsonUtils.Serialize(fileFullPath, cells);
        }
    }
}
